﻿@model javanet_demo.Models.ProjectListModel
@{
    ViewBag.Title = "Java.NET";
}
<h2>@ViewBag.Message</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@Html.ValidationSummary(true, "sdfsdkfjsk")
@using (Html.BeginForm())
{
    <div>
        <fieldset>
            <legend>Project List</legend>
            <ul>
                @foreach (var p in Model.projects)
                {
                    <li>
                        @Html.ActionLink(p.code + " - " + p.nameShort, "Change", new { selectedId = p.id });
                    </li>
                }
            </ul>
            <p>
                <input type="submit" value="Add Project" name="AddProject" />
            </p>
        </fieldset>
    </div>
}
